#ifndef __TREMPLICARTON_H__
#define __TREMPLICARTON_H__

#include "tMere.h"

#define TEMPO 30

/************************ PUBLIC VARIABLES  ******************************/
/* Data defining the total number of pieces that the box contains at the moment*/
int16_t nbPiecesCarton;

/* Data defining the number of defective pieces that the box contains at the moment*/
int16_t compteur;


/************************ PUBLIC FUNCTIONS ******************************/
void tRempliCarton();
void Imprimer();
/*ISR routine of the sensor detecting a piece and evaluating whether 
 * the piece is ok or is defective */
void CapteurDim();
/* Alarm routine called whether the time between the arrival of 2 pieces exceeded*/
void wdRoutine(int16_t valeur);
/* ISR routine of the emergency stop*/
void ArretUrgent();

#endif
